package nbcp.web.info

import io.swagger.annotations.Api
import io.swagger.annotations.ApiOperation
import nbcp.base.comm.JsonResult
import nbcp.comm.JsonpMapping
import nbcp.db.mongo.entity.SysUser
import org.springframework.web.bind.annotation.RestController


/**
 * Created by udi on 17-4-1.
 */

@Api(description = "我的信息",tags= arrayOf("MineInfo"))
@RestController
@JsonpMapping("/me")
class Me_Controller
{
    @ApiOperation("获取我的信息")
    @JsonpMapping("/getInfo")
    fun getInfo():SysUser{
        var ret = SysUser();
        return ret;
    }

    @ApiOperation("修改我的信息")
    @JsonpMapping("/saveInfo")
    fun saveInfo():JsonResult{
        return JsonResult();
    }
}